/*
 * 作者：姚俊
 * 功能：学科信息修改
 * 日期：2015-05-27
 */
package admin.action.baseInfo;

import admin.bean.Subject;
import admin.service.subject.SubjectService;

public class MendSubjectAction {
	
	private Subject subject;
	private String flag;
	
	
	public Subject getSubject() {
		return subject;
	}


	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	public String getFlag() {
		return flag;
	}


	public void setFlag(String flag) {
		this.flag = flag;
	}


	public String execute()
	{
		Subject su=new Subject();
		su.setSubId(1);
		new SubjectService().updateSubject(this.getSubject(), su);
		this.setFlag("succ");
		System.out.println("我现在在这里");
		return "succ";
	}

}
